package com.cmwa.solution.sys.attach.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cmwa.solution.annotation.MybatisDao;
import com.cmwa.solution.base.entity.SearchParam;
import com.cmwa.solution.sys.attach.entity.AttachRelVo;

/**
 * 附件关联关系表数据访问层
 * 
 * @author ex-chenxh
 * @date 2019-02-15 13:36:34
 */
@MybatisDao
public interface AttachRelDao {

	
	public void insertAttachRel(AttachRelVo attachRel);
	
		
		
	public void physicDeleteAttachRelById(@Param("id") String id);
	
		
		
	public void logicDeleteAttachRelById(@Param("id") String id);
	
		
		
	public void updateAttachRelById(AttachRelVo attachRel);
	
		
		
	public List<AttachRelVo> attachRelListPage(SearchParam sp);
	
	
		
	public AttachRelVo getAttachRelById(@Param("id") String id);
	
	
	
	public int updateRelIdByAttRelId(@Param("relId") String relId,@Param("modifyId") String modifyId,@Param("attRelId") String attRelId);	
	
	
	
	public int batchInsertAttachRel(@Param("list")List<AttachRelVo> list);
	
	
	
	public int batchDeleteAttachRelByAttId(@Param("ids") String ids);
}
